package com.hhkj.admin.conf.service.biz;

import com.hhkj.admin.conf.common.cont.ConfConst;
import com.ruoyi.common.constant.CacheConstants;
import org.bouncycastle.cert.ocsp.Req;

public interface RuleBizService<Req, Res> {

    String REDIS_CACHE_PREFIX = CacheConstants.SYS_CONFIG_KEY + "sale:" + "conf:";

    int TIMEOUT = 24;

    /**
     * 获取规则
     * @return 规则详情
     */
    Res get();

    /**
     * 修改规则
     * @param req 新规则
     * @return
     */
    boolean update(Req req);

    /**
     * 规则名称
     * @return
     */
    ConfConst.Code getCode();
}
